﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunboxsoft.WinForm
{
    public class ViewStackNode
    {
        public ViewDisplayMode DisplayMode { get; set; }
        public object View { get; set; }
        public object Tag { get; set; }
        /// <summary>
        /// 所处的容器对象
        /// </summary>
        public IViewContainer Container { get; set; }
        public ViewActiveArgs ActiveArgs { get; set; }

        [Obsolete("过期", true)]
        public ViewStackNode(object view, ViewDisplayMode mode)
        {
            View = view;
            DisplayMode = mode;
        }
        public ViewStackNode(object view, ViewDisplayMode mode, object tag, IViewContainer container, ViewActiveArgs activeArgs)
        {
            View = view;
            DisplayMode = mode;
            Tag = tag;
            Container = container;
            ActiveArgs = activeArgs;
        }
    }
}
